package io.eleKing.boot.weather.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.eleKing.boot.weather.entity.WeatherStation;
import io.eleKing.boot.weather.query.WeatherStationQuery;
import io.eleKing.boot.weather.vo.WeatherStationVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 自动站 Mapper 接口
 *
 * @author eleKing
 * @since 2025-04-15
 */
@Mapper
public interface WeatherStationMapper extends BaseMapper<WeatherStation> {

    /**
     * 自动站详情
     *
     * @param id
     * @return
     */
    WeatherStationVo getWeatherStationById(Long id);

    /**
     * 自动站分页列表
     *
     * @param query
     * @return
     */
    List<WeatherStationVo> getWeatherStationPage(WeatherStationQuery query);

}
